package org.webball.pitch.phase;

import org.webball.base.abstracts.AbstractBall;
import org.webball.pitch.Pitch;
import org.webball.pitch.Team;

/**
 * 
 * @author Maciej Koch
 *
 */
public abstract class BasicPhase{
	
	Pitch pitch;
	
	protected Team[] teams;
	protected AbstractBall ball;
	public static int lastAttackingTeam;
	public static int attackingTeam; 
	
	protected boolean end;
	
	public BasicPhase(Team[] teams, AbstractBall ball, Pitch pitch) {
		this.teams = teams;
		this.ball = ball;
		this.pitch = pitch;

	}
	public abstract void update();

	
	public int getTimeToEnd() {
		return -1;
	}
	protected abstract void stop();

	
}
